import Vue from 'vue'
import App from './App.vue'
import router from './router'
import singleSpaVue from 'single-spa-vue'
Vue.config.productionTip = false

// new Vue({
//   router,
//   render: h => h(App)
// }).$mount('#app')

const appOptions = {
  el: '#vue',
  router,
  render: h => h(App)
}

const vueLifeCycle = singleSpaVue({
  Vue,
  appOptions
})
if(window.singleSpaNavigate){
  __webpack_public_path__ = 'http://localhost:10000/'
}else{
  delete appOptions.el
  new Vue(appOptions).$mount('#app')
}

// bootstrap mount   unmount
export const bootstrap = vueLifeCycle.bootstrap
export const mount = vueLifeCycle.mount
export const unmount = vueLifeCycle.unmount